package com.qf.cloud2204.feign.feignclient;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;

@FeignClient("MICROTOKEN")
public interface MircoTokenClient {
    //调用MICROTOKEN服务的token/gentoken接口
    @PostMapping("/token/gentoken")
    public HashMap<String,Object> genToken(@RequestParam("number") String number);

    @PostMapping("/token/verify")
    public HashMap<String,Object> verify(@RequestParam("token") String token);
}
